pool_imputations Subroutine

public pure subroutine pool_imputations(est, vars, qbar, tvar, dof)

Combines the results of the analyses of multiply-imputed data sets by means of Rubin's rules.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: est

A K-element array containing the parameter estimate obtained from each of the K imputed data sets.

real(kind=real64), intent(in), dimension(:) :: vars

A K-element array containing the estimated variance of the parameter obtained from each of the K imputed data sets.

real(kind=real64), intent(out) :: qbar

The pooled parameter estimate.

real(kind=real64), intent(out) :: tvar

The total variance of the pooled estimate. The total variance is the sum of the within-imputation variance and the appropriately scaled between-imputation variance.

real(kind=real64), intent(out), optional :: dof

An optional output containing the degrees of freedom associated with the pooled estimate.